\begin{table}[h!]
\renewcommand{\arraystretch}{1.2}
\caption{Study Participants by Wave and Survey Attrition (Missing Data)}
\label{samplesize}
\centering
\begin{tabular}{lccccccc}
\toprule & &  \multicolumn{3}{c}{\shortstack[c]{\% Allocation \\ Random Assignment}}& \multicolumn{3}{c}{\shortstack[c]{\% of Study Participants\\ with Missing Data}}  \\
\cmidrule(lr){3-5} \cmidrule(lr){6-8} & \shortstack[c]{No. of Study \\ Participants} & \shortstack[c]{HEE} & \shortstack[c]{HEEC} & Control & Baseline & Midline & Endline \\\midrule
Wave 1 & 191 & \makecell[c]{21\%} & \makecell[c]{27\%} & \makecell[c]{52\%}    & 0\%  & \makecell[c]{53\%}  & \makecell[c]{3\%} \\
Wave 2 & 282 & \makecell[c]{26\%} & \makecell[c]{25\%} & \makecell[c]{50\%}    & 0\%  & \makecell[c]{5\%}  & \makecell[c]{7\%} \\
Wave 3 & 160 & \makecell[c]{25\%} & \makecell[c]{26\%} & \makecell[c]{49\%}    & 0\%  & \makecell[c]{4\%}  & \makecell[c]{4\%} \\
Wave 4 & 254 & \makecell[c]{26\%} & \makecell[c]{24\%} & \makecell[c]{50\%}    & 0\%  & \makecell[c]{4\%}  & \makecell[c]{7\%} \\
\midrule
Total  & 887 & \makecell[c]{25\%} & \makecell[c]{25\%} & \makecell[c]{50\%} & 0\%  & \makecell[c]{15\%}  & \makecell[c]{5\%}  \\
\bottomrule
\multicolumn{8}{p{0.85\linewidth}}{\footnotesize \textit{Notes:} The study was conducted in four waves. Each wave refers to a separate iteration of participant recruitment, baseline, randomization, film screenings, midline, and endline. For each wave, the table indicates the number of study participants, their allocation to the study arms, and the percentage of study participants with missing data for each survey.}
\end{tabular}
\end{table}